import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBHomePage/YBMapMiShuPage/YBMapMiShuSubPage/YBMapMiShuSelectInfoPage.dart';


class YBMapMiShuSelectContentPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
       decoration: BoxDecoration(
          borderRadius: BorderRadius.only(topRight: Radius.circular(8.0),topLeft: Radius.circular(8.0)),
          color: YBColor.white,
       ),
       child:Padding(
         padding:EdgeInsets.only(left: 12,right: 20,top: 5),
         child: DefaultTabController(
            length: 2,
            child: Column(
              children: [
                Container(
                  child: TabBar(
                      indicatorSize: TabBarIndicatorSize.label,
                      unselectedLabelColor: YBColor.color1B1C1F,
                      labelColor: YBColor.commonThemeColor,
                      indicatorColor: YBColor.commonThemeColor,
                      tabs: [
                        Tab(text: "按行政区域",),
                        Tab(text: "按周边范围",),
                      ]
                  ),
                ),
                Expanded(
                  child: YBMapMiShuSelectInfoPage(),
                ),
              ],
            ),
         ),
       ),
    );
  }
}
